package a.j;

import java.awt.*;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;

public class c
  extends BasicStroke
{
  private static c[][] a;
  private byte c;
  private static Map d = new HashMap(11);
  public static final c e = new c(1.0F);
  public static final c f = new c(2.0F);
  public static final c g = new c(3.0F);
  public static final c h = new c(4.0F);
  public static final c i = new c(5.0F);
  public static final c j = new c(6.0F);
  public static final c k = new c(7.0F);
  public static final c l = new c(1.0F, 0, 0, 1.45F, new float[] { 6.0F, 2.0F }, 0.0F, (byte)1);
  public static final c m = new c(2.0F, 0, 0, 1.45F, new float[] { 12.0F, 4.0F }, 0.0F, (byte)1);
  public static final c n = new c(3.0F, 0, 0, 1.45F, new float[] { 18.0F, 6.0F }, 0.0F, (byte)1);
  public static final c o = new c(4.0F, 0, 0, 1.45F, new float[] { 24.0F, 8.0F }, 0.0F, (byte)1);
  public static final c p = new c(5.0F, 0, 0, 1.45F, new float[] { 30.0F, 10.0F }, 0.0F, (byte)1);
  public static final c q = new c(1.0F, 1, 0, 1.45F, new float[] { 0.0F, 4.0F }, 2.0F, (byte)2);
  public static final c r = new c(2.0F, 1, 0, 1.45F, new float[] { 0.0F, 8.0F }, 2.0F, (byte)2);
  public static final c s = new c(3.0F, 1, 0, 1.45F, new float[] { 0.0F, 12.0F }, 2.0F, (byte)2);
  public static final c t = new c(4.0F, 1, 0, 1.45F, new float[] { 0.0F, 16.0F }, 2.0F, (byte)2);
  public static final c u = new c(5.0F, 1, 0, 1.45F, new float[] { 0.0F, 20.0F }, 2.0F, (byte)2);
  public static final c v = new c(1.0F, 1, 0, 1.45F, new float[] { 4.0F, 3.0F, 0.0F, 3.0F }, 0.0F, (byte)3);
  public static final c w = new c(2.0F, 1, 0, 1.45F, new float[] { 8.0F, 6.0F, 0.0F, 6.0F }, 0.0F, (byte)3);
  public static final c x = new c(3.0F, 1, 0, 1.45F, new float[] { 12.0F, 9.0F, 0.0F, 9.0F }, 0.0F, (byte)3);
  public static final c y = new c(4.0F, 1, 0, 1.45F, new float[] { 16.0F, 12.0F, 0.0F, 12.0F }, 0.0F, (byte)3);
  public static final c z = new c(5.0F, 1, 0, 1.45F, new float[] { 20.0F, 15.0F, 0.0F, 15.0F }, 0.0F, (byte)3);
  public static final byte A = 0;
  public static final byte B = 1;
  public static final byte C = 2;
  public static final byte D = 3;
  public static final byte E = 127;
  private static final float F = 1.45F;
  public static boolean G;
  
  private c(float paramFloat)
  {
    super(paramFloat, 0, 0, 1.45F);
    this.c = 0;
  }
  
  private c(float paramFloat1, int paramInt1, int paramInt2, float paramFloat2, float[] paramArrayOfFloat, float paramFloat3, byte paramByte)
  {
    super(paramFloat1, paramInt1, paramInt2, paramFloat2, paramArrayOfFloat, paramFloat3);
    this.c = paramByte;
  }
  
  public static c a(float paramFloat1, int paramInt1, int paramInt2, float paramFloat2, float[] paramArrayOfFloat, float paramFloat3)
  {
    c localc1 = new c(paramFloat1, paramInt1, paramInt2, paramFloat2, paramArrayOfFloat, paramFloat3, (byte)127);
    synchronized (d)
    {
      c localc2 = (c)d.get(localc1);
      if (!ld.E)
      {
        if (localc2 != null) {
          return localc2;
        }
        d.put(localc1, localc1);
      }
      return localc1;
    }
  }
  
  public int hashCode()
  {
    return (int)((5 + this.c) * getLineWidth());
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramObject == this) {
        return true;
      }
    }
    if (!bool2) {
      if (!(paramObject instanceof c)) {
        return false;
      }
    }
    c localc = (c)paramObject;
    float[] arrayOfFloat1 = localc.getDashArray();
    float[] arrayOfFloat2 = getDashArray();
    if ((bool2) || (((arrayOfFloat1 == null ? 1 : 0) ^ (arrayOfFloat2 == null ? 1 : 0)) != 0)) {
      return false;
    }
    if ((bool2) || (arrayOfFloat2 != null))
    {
      if (!bool2) {
        if (arrayOfFloat1.length != arrayOfFloat2.length) {
          return false;
        }
      }
      int i1 = 0;
      do
      {
        if (i1 >= arrayOfFloat2.length) {
          break;
        }
        if (bool1) {
          break label160;
        }
        if (arrayOfFloat1[i1] != arrayOfFloat2[i1]) {
          return false;
        }
        i1++;
      } while (!bool1);
    }
    if ((bool2) || (localc.getDashPhase() == getDashPhase())) {
      label160:
      if (((!bool2) && ((localc.getEndCap() == getEndCap()) && (bool2))) || ((localc.getLineJoin() == getLineJoin()) && ((bool2) || (localc.getLineWidth() == getLineWidth())) && ((bool2) || (localc.getMiterLimit() == getMiterLimit())))) {
        if (bool2) {}
      }
    }
    return localc.a() == a();
  }
  
  public static c a(int paramInt, byte paramByte)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (paramInt <= 0)
      {
        paramInt = 1;
        if ((!bool) && (!ld.D)) {
          break label45;
        }
      }
    }
    if ((bool) || (paramInt > a[paramByte].length)) {
      paramInt = a[paramByte].length;
    }
    label45:
    return a[paramByte][(paramInt - 1)];
  }
  
  public byte a()
  {
    return this.c;
  }
  
  public static Vector b()
  {
    Vector localVector = new Vector();
    localVector.add(e);
    localVector.add(f);
    localVector.add(g);
    localVector.add(h);
    localVector.add(i);
    localVector.add(j);
    localVector.add(k);
    localVector.add(l);
    localVector.add(m);
    localVector.add(n);
    localVector.add(o);
    localVector.add(p);
    localVector.add(q);
    localVector.add(r);
    localVector.add(s);
    localVector.add(t);
    localVector.add(u);
    localVector.add(v);
    localVector.add(w);
    localVector.add(x);
    localVector.add(y);
    localVector.add(z);
    return localVector;
  }
  
  public static void a(ObjectOutput paramObjectOutput, c paramc)
    throws IOException
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2)
    {
      if (paramc == null)
      {
        paramObjectOutput.writeByte(1);
        if (bool2) {
          break label47;
        }
        if (!bool1) {
          return;
        }
      }
      paramObjectOutput.writeByte(0);
    }
    label47:
    int i1 = paramc.a();
    paramObjectOutput.writeByte(i1);
    if (!bool2)
    {
      if (i1 != 127) {
        paramObjectOutput.writeByte((byte)(int)paramc.getLineWidth());
      }
    }
    else if (!bool1) {
      return;
    }
    float[] arrayOfFloat = paramc.getDashArray();
    if (!bool2)
    {
      if (arrayOfFloat == null)
      {
        paramObjectOutput.writeInt(0);
        if (bool2) {
          break label190;
        }
        if (!bool1) {}
      }
      else
      {
        paramObjectOutput.writeInt(arrayOfFloat.length);
      }
    }
    else
    {
      int i2 = 0;
      do
      {
        if (i2 >= arrayOfFloat.length) {
          break;
        }
        if (bool2) {
          break label210;
        }
        paramObjectOutput.writeFloat(arrayOfFloat[i2]);
        i2++;
        if (bool1) {
          break label205;
        }
      } while (!bool1);
    }
    paramObjectOutput.writeFloat(paramc.getLineWidth());
    paramObjectOutput.writeInt(paramc.getEndCap());
    paramObjectOutput.writeInt(paramc.getLineJoin());
    label190:
    if (!bool2) {
      paramObjectOutput.writeFloat(paramc.getMiterLimit());
    }
    label205:
    label210:
    paramObjectOutput.writeFloat(paramc.getDashPhase());
  }
  
  public static c a(ObjectInput paramObjectInput)
    throws IOException
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {}
    switch (paramObjectInput.readByte())
    {
    case 0: 
      byte b = paramObjectInput.readByte();
      if (!bool2) {
        if (b != 127) {
          return a(paramObjectInput.readByte(), b);
        }
      }
      int i1 = paramObjectInput.readInt();
      float[] arrayOfFloat = null;
      if ((bool2) || (i1 > 0))
      {
        arrayOfFloat = new float[i1];
        int i2 = 0;
        do
        {
          if (i2 >= i1) {
            break;
          }
          arrayOfFloat[i2] = paramObjectInput.readFloat();
          i2++;
        } while (!bool1);
      }
      return a(paramObjectInput.readFloat(), paramObjectInput.readInt(), paramObjectInput.readInt(), paramObjectInput.readFloat(), arrayOfFloat, paramObjectInput.readFloat());
    case 1: 
      return null;
    }
    throw new a.e.c();
  }
  
  static
  {
    a = new c[4][];
    a[0] = new c[7];
    a[1] = new c[5];
    a[2] = new c[5];
    a[3] = new c[5];
    a[0][0] = e;
    a[0][1] = f;
    a[0][2] = g;
    a[0][3] = h;
    a[0][4] = i;
    a[0][5] = j;
    a[0][6] = k;
    a[1][0] = l;
    a[1][1] = m;
    a[1][2] = n;
    a[1][3] = o;
    a[1][4] = p;
    a[2][0] = q;
    a[2][1] = r;
    a[2][2] = s;
    a[2][3] = t;
    a[2][4] = u;
    a[3][0] = v;
    a[3][1] = w;
    a[3][2] = x;
    a[3][3] = y;
    a[3][4] = z;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.c

 * JD-Core Version:    0.7.0.1

 */